<template name="search">
  <div class="view">
    <span class="title">
      <i class="icon1"></i>自由行
    </span>
    <div class="searchGroup">
      <span class="model">
        <span style="margin: 0 7px;font-size: 16px;">北海</span> 出发
      </span>
      <i class="icon2"></i>
      <input type="text" placeholder="请输入目的地/产品名称" class="searchInput" />
      <span class="iconView">
        <i class="icon3"></i>
      </span>
    </div>
  </div>
</template>

<script>
export default {
  name: "search",
  data() {
    return {};
  },
  methods: {
    getData() {}
  },
  mounted() {
    this.getData();
  }
};
</script>

<style lang="stylus" scoped>
.view {
  width: 100%;
  height: 70px;
  background-image: url('http://css.mafengwo.net/images/sales/brand-fh-bg.jpg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;

  .title {
    font-size: 24px;
    display: flex;
    align-items: center;
    width: 185px;

    .icon1 {
      width: 28px;
      height: 32px;
      background-image: url('http://css.mafengwo.net/images/sales/global-icon4.png');
      display: inline-block;
      margin-right: 15px;
      background-position-x: 29px;
    }
  }

  .searchGroup {
    width: 670px;
    height: 40px;
    background-color: orange;
    border-radius: 5px;
    display: flex;
    align-items: center;

    .model {
      background-color: #fff;
      height: 75%;
      display: inline-block;
      width: 115px;
      margin-left: 10px;
      display: flex;
      align-items: center;
      box-sizing: border-box;
      border-radius: 2px;
      font-size: 13px;
      cursor: pointer;
    }

    .icon2 {
      width: 20px;
      height: 20px;
      background-image: url('http://css.mafengwo.net/images/sales/global-icon4.png');
      display: inline-block;
      background-position: 31px -161px;
      margin: 8px;
      cursor: pointer;
    }

    .searchInput {
      height: 75%;
      border: none;
      outline: none;
      padding-left: 15px;
      font-size: 15px;
      width: 428px;
      border-radius: 2px;
      box-sizing: border-box;
    }

    .iconView {
      width: 72px;
      height: 32px;
      margin-left: 4px;
      text-align: center;

      &:hover {
        background-color: #ff8a00;
      }

      .icon3 {
        width: 28px;
        height: 32px;
        background-image: url('http://css.mafengwo.net/images/sales/global-icon4.png');
        display: inline-block;
        background-position: 33px -56px;
      }
    }
  }
}
</style>